<!doctype html>
<html lang="en" xmlns:th="http://thymeleaf.org">

初始页面
<form class="mt-5" method="post" th:action="@{/user/logout}">
    <button type="submit">登出</button>
</form>

</html>